function render(data) {
    let str = ''
    str = data.map((item) => {
        return `<tr>
                    <td class="active">${item.email}</td>
                    <td>${item.name}</td>
                    <td>${item.phone}</td>
                    <td>${item.group}</td>
                    <td>${item.isadmin}</td>
                    <td>
                        <span class="status ${item.status ? '' : 'error'}">${item.status ? '正常' : '异常'}</span>
                    </td>
                    <td>
                        <span class="iconfont icon-bianji"></span>
                        <span class="iconfont icon-shanchu"></span>
                    </td>
                </tr>`
    }).join('')
    if (str == '') {
        str = `<tr>
                <td colspan="7">
                    未查询到相关数据
                </td>
            </tr>`
    }
    document.querySelector('table tbody').innerHTML = str
}



